package com.rem.cloudalibaba.service.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * sentinel 异常兜底返回
 *
 * @author Rem
 * @date 2021-08-04
 */

@Slf4j
public class SentinelResourcesServiceBlockHandler {


    /**
     * 必须是static 方法
     *
     * @param e
     * @return
     */
    public static String blockHandlerMethod2(BlockException e) {
        log.error("{0}", e);
        return "接口被限流了22222222";
    }
}
